import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import sjdp from '../views/sjdp.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [

    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/sjdp',
      name: 'sjdp',
      component: sjdp
    },
    {
      path: '/index',
      name: 'index',
      component: () => import('../views/AboutView.vue'),
      redirect: "/index1",
      children: [
        {
          path: '/index1',
          name: 'index1',
          component: () => import('../views/index1.vue')
        },
        {
          path: '/User',
          name: 'User',
          component: () => import('../views/User.vue')
        },
        {
          path: '/Role',
          name: 'Role',
          component: () => import('../views/Role.vue')
        },
        {
          path: '/Permission',
          name: 'Permission',
          component: () => import('../views/Permission.vue')
        },
        {
          path: '/Trademark',
          name: 'Trademark',
          component: () => import('../views/Trademark.vue')
        },
        {
          path: '/Attr',
          name: 'Attr',
          component: () => import('../views/Attr.vue')
        },
        
        {
          path: '/Sku',
          name: 'Sku',
          component: () => import('../views/Sku.vue')
        },

      ]
    }
  ]
})

export default router
